package com.jlect.swebing.ui.client.laf;

import com.jlect.swebing.ui.client.Color;
import com.jlect.swebing.ui.client.GComponent;

import java.util.HashMap;

/**
 * This class stores properties for specific LAF
 *
 * @author Sergey Kozmin
 * @since 03.12.2007 10:04:46
 */
public class UIDefaults extends HashMap implements UIProperties {
    public Color getColor(String colorProperty) {
        return (Color) get(colorProperty);
    }

    public ComponentUI getComponentUI(GComponent c) {
        return ((ComponentUI) get(c.getUiComponentID())).createInstance();
    }
}
